package by.pavlyukevich.paymentsystem.dataaccess.filter;

import java.util.Date;

import by.pavlyukevich.paymentsystem.datamodel.Account;
import by.pavlyukevich.paymentsystem.datamodel.Transaction;
import by.pavlyukevich.paymentsystem.datamodel.card.Card;

public class TransactionFilter extends Filter<Transaction> {
	private Date beginPeriod;
	private Date EndPeriod;
	private Account senderAccount;
	private Account payeeAccount;
	private Card senderCard;

	public Account getSenderAccount() {
		return senderAccount;
	}

	public TransactionFilter setSenderAccount(Account senderAccount) {
		this.senderAccount = senderAccount;
		return this;
	}

	public Account getPayeeAccount() {
		return payeeAccount;
	}

	public TransactionFilter setPayeeAccount(Account payeeAccount) {
		this.payeeAccount = payeeAccount;
		return this;
	}

	public Card getSenderCard() {
		return senderCard;
	}

	public TransactionFilter setSenderCard(Card senderCard) {
		this.senderCard = senderCard;
		return this;
	}

	public Date getBeginPeriod() {
		return beginPeriod;
	}

	public TransactionFilter setBeginPeriod(Date beginPeriod) {
		this.beginPeriod = beginPeriod;
		return this;
	}

	public Date getEndPeriod() {
		return EndPeriod;
	}

	public TransactionFilter setEndPeriod(Date endPeriod) {
		EndPeriod = endPeriod;
		return this;
	}

}
